﻿using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Folks.UI
{
	[Designer(typeof(Folks.UI.Design.FolksContainerControlDesigner))]
	[ToolboxData("<{0}:FolksProgress runat=server></{0}:FolksProgress>")]
	public class FolksProgress : Panel
	{

		#region Overriden Methods & Properties
		protected override void AddAttributesToRender(HtmlTextWriter writer)
		{
			writer.AddAttribute(HtmlTextWriterAttribute.Rel, "folks:progress");
			base.AddAttributesToRender(writer);
		}

		protected override void OnPreRender(EventArgs e)
		{
			FolksManager.EnsureFolksManager(Page);
			base.OnPreRender(e);
		}

		protected override HtmlTextWriterTag TagKey
		{
			get
			{
				return HtmlTextWriterTag.Span;
			}
		}
		#endregion
	}
}
